package com.xing.msmServer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import javax.sql.DataSource;

/**
 * 启动类
 *
 * @author: xingfuhao
 * @create: 2022-03-24 22:32
 */

//exclude 排除的意思
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@ComponentScan("com.xing")
@EnableSwagger2
@EnableDiscoveryClient  //开启注册发现连接
//@EnableFeignClients
public class MsmController {

    public static void main(String[] args) {
        SpringApplication.run(MsmController.class, args);
    }
}
